import { createRouter, createWebHistory } from 'vue-router'
import Home from "@/views/home/index.vue"; 
import Login from "@/views/login/index.vue"; 
import MyResources from "@/views/resources/my/index.vue"; 
import PublishingResources from "@/views/resources/publishing/index.vue"; 
import AllResources from "@/views/resources/allresources/index.vue"
import Recharge from "@/views/order/recharge/index.vue"
import Withdrawal from "@/views/order/withdrawal/index.vue"
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/myresources',
      name: 'myresources',
      component: MyResources
    },
    {
      path: '/publishingresources',
      name: 'publishingresources',
      component: PublishingResources
    },
    {
      path: '/allresources',
      name: 'allresources',
      component: AllResources
    },
    {
      path: '/withdrawal',
      name: 'withdrawal',
      component: Withdrawal
    },
    {
      path: '/recharge',
      name: 'recharge',
      component: Recharge
    },
  ]
})

export default router
